package com.graph.factory;

import com.graph.impl.DensityCenterGraph;
import com.graph.base.CommunityFinder;

public class DensityCenterFactory implements Provider{
	/**
	 * 衡量选取社区的数量
	 */
	private  Integer numCommunity;
	public DensityCenterFactory(Integer numCommunity) {
		this.numCommunity=numCommunity;
	}
	@Override
	public CommunityFinder produce(String dataPath, String fileName) {
		return new DensityCenterGraph(dataPath,fileName,numCommunity);
	}
}
